# -*- coding:utf-8 -*-
from . import api
from flask import session,current_app
from ihome import redis_store
import logging


@api.route('/index',methods=['POST','GET'])
def index():
    session['name'] = 'xiaoming'
    redis_store.set('name','xiaofang')
    logging.debug('DEBUG LOGLOG')
    print '-----------------------'
    current_app.logger.debug('DEBUG LOGLOG CURRENT')
    return 'hello word'